﻿@model BrnMall.Web.StoreAdmin.Models.UserListModel

@section header{
<title>会员列表</title>
<link type="text/css" rel="stylesheet" href="/admin_store/css/site.css"/>     
<link type="text/css" rel="stylesheet" href="/components/jquery_tips/tipso.min.css">
<script type="text/javascript" src="/admin_mall/scripts/jquery.js"></script>
<script type="text/javascript" src="/components/jquery_tips/tipso.min.js"></script>
<script type="text/javascript" src="/admin_mall/scripts/showlist.js"></script>
<script>
    $(function () {
        var userrid = $('#UserRid').val();
        $('.userrids').each(function () {
            var id = parseInt($(this).text());
            if (id !=userrid && id==0) {
                $('.Titles').text("非管理员");
            }
        });

        /*鼠标移动的提示*/
        $('.tips').tipso({ useTitle: false, background: '#ff8427' });
    });
</script>
}

@section body{
<h1 class="rightH1">
	微信小程序 &gt; 会员中心 &gt; <span class="rightH1-cur">会员列表</span>
<div class="right">

<div class="clear"></div>
</div>
<div class="clear"></div>
</h1>
@using (Html.BeginForm("list", "user"))
{
<div class="dataListSearch">
<table height="32">
        <tbody>
         <tr>
			<td style="width:30%">
				会员等级：
			  @Html.DropDownListFor(x => x.UserRid, Model.UserRankList,new { style="width:186px" })
			</td>
       
			<td style="width:30%">
				用户名：
				@Html.TextBox("UserName", Model.UserName, new { height = "18" })
			</td>
  
             <td  style="width:30%">
				 用户昵称：
                 @Html.TextBox("NickName", Model.NickName, new { height = "18" })
             </td>
		 	<td  style="width:10%; text-align:right; padding-right:5px;">
		 		<input id="SearchUser" name="SearchUser" type="image" class="searchBut submit" src="/admin_store/images/s.jpg" />
		 	</td>
	</tr>
	<tr>
        <td style="padding-left:28px;">
			邮箱：
          	@Html.TextBox("Email", Model.Email, new { height = "18" })
        </td>
   
        <td style="padding-left:15px;" colspan="3">
			手机：
          	@Html.TextBox("Mobile", Model.Mobile, new { height = "18" })
        </td>
		
      </tr>
     </tbody></table>
</div>

<div class="dataList">
<table width="100%">
<thead>
  <tr>
    <th align="left">编号</th>
    <th align="left" style="width:50px">头像</th>
    <th align="left">昵称</th>
    <th align="left">用户名</th>
    <th style="display:none;" align="left">等级id</th>
    <th align="left">邮箱手机</th>
    <th align="left">权限</th>
    <th align="left">注册访问</th>
    <th style="width:70px;" align="left">管理操作</th>
    </tr>
</thead>
  <tbody>
  @foreach (DataRow row in Model.UserList.Rows)
  {
    <tr>
        <td>@row["uid"]</td>
        <td><img src="@row["avatar"]" style="border-radius: 25px;" width="50" height="50" alt="" /></td>
        <td>
            <span class="tips" style="border-bottom:0px; padding-left:30px;" data-tipso="支付积分：@row["paycredits"]<br/>等级积分：@row["UserRid"]">
                @row["nickname"]
            </span>
        </td>
        <td>@row["username"]</td>   
        <td style="display:none;" class="userrids"></td>
        <td>@row["email"]<br />@row["mobile"]</td>
        <td class="Titles">@row["utitle"]<br />@row["atitle"]</td>
        <td>@row["registertime"]<br />@row["lastvisittime"]</td>
        <td>
            @Html.ActionLink("编辑", "edit", new { uid = row["uid"] }, new { @class = "editOperate" })
        </td>
    </tr>
  }
</tbody>
</table>
</div>
<div class="dataListEdit">
<div class="page">
    @Html.MallAdminPager(Model.PageModel)
</div>
</div>
}
}